<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html">
<h1>Bookstore - Back office</h1>

<h:panelGrid rendered="#{clientController.loggedIn != true}">  
   <h:link value="Login page" outcome="login" />
   <h:link value="Register page" outcome="register" />
</h:panelGrid>

<h:link value="Gestion des catégories" outcome="listeCategoriesBO" />
<p:spacer width="20px"/>
<h:link value="Gestion des livres" outcome="listeBook" />
<p:spacer width="20px"/>
<h:link value="Gestion des clients" outcome="listeClients" />
<p:spacer width="20px"/>
<h:link value="Gestion des auteurs" outcome="indexAuthor" />
      

<h:form id="login-header">
	<h:panelGroup rendered="#{clientController.loggedIn}">
		#{currentClient.login}
		<h:commandLink action="#{clientController.doLogout}" value="Se déconnecter" />
	</h:panelGroup>
</h:form>

</ui:composition>